#ifndef __CANDIDATE_H__
#define __CANDIDATE_H__

#include<string>
#include<iostream>

using std::ostream;

using std::string;

class Candidate
{
public:
    //重载小于
    friend 
bool operator<(const Candidate& lhs ,const Candidate& rhs);

    //重载输出
    friend
ostream& operator<<(ostream& os , const Candidate & rhs) ;

    //构造函数
    Candidate(string & str, int freq , int distance);

private:
    string _sentence;
    int _freq;
    int _dist;
};
#endif
